package cn.edu.scujcc;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ConsultService {
	
	@Autowired
	public ConsultRepository repo;
	public Consult createConsult(Consult c) {
		Consult result = null;
		result=repo.save(c);
		return result;
	}
	
	public List<Consult>getAllConsult(){
		List<Consult>result = null;
		result = repo.findAll();
		return result;
	}
}
